[?php use_helper('Javascript') ?] 

[?php if($numResultados > 0): ?]
<?php $listActions = $this->getParameterValue('list.batch_actions') ?>
<?php if (!is_null($listActions)): ?>
<div id="sf_admin_batch_action_choice">
  <select name="sf_admin_batch_action">
    <option value="">[?php echo __('Escoja una opci&oacute;n') ?]</option>
    <?php foreach ((array) $listActions as $actionName => $params): ?>
    <?php echo $this->addCredentialCondition($this->getOptionToAction($actionName, $params), $params) ?>
    <?php endforeach; ?>
  </select>
  [?php echo submit_to_remote('Ejecutar', 'Ejecutar', array('url'=>'<?php echo $this->getModuleNAme() ?>/batchAction', '200'=>'alert("Se elimino");borrarElementos("form_<?php echo $this->getModuleName() ?>")', '204'=>'alert("No se encontraron elementos")', '404'=>'alert("Error")') ) ?]
  </form>
</div>
<?php endif; ?>
[?php endif; ?]